package com.heima.model.comment.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xfp
 * @since 2024-11-26
 */
@Data
@Document("ap_associate_words")
public class CommentMG implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 用户id
     */
    private Integer authorId;

    /**
     * 用户姓名
     */
    private String authorName;

    /**
     * 文章id
     */
    private String entryId;

    /**
     * 类型id
     */
    private Integer channelId;

    /**
     * 评论类型
     */
    private Integer type;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 图片
     */
    private String image;

    /**
     * 点赞数量
     */
    private Integer likes;

    /**
     * 回复数量
     */
    private Integer reply;

    private Integer flag;

    private String longitude;

    private String latitude;

    private String address;

    private String ord;

    /**
     * 评论时间
     */
    private Date createdTime;

    /**
     * 评论更新时间
     */
    private Date updatedTime;

    /**
     * 是否点赞
0：点赞
null: 未点赞
     */
    @TableField("operation")
    private Integer operation;


}
